package com.ssm.tsj.controller;

import com.ssm.tsj.service.InterposeService;
import com.ssm.tsj.vo.InterposeVo;
import com.ssm.tsj.vo.MemberMedicVo;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
public class ClassificationController {

    @Resource
    private InterposeService interposeService;

    @ResponseBody
    @RequestMapping("/interposeService.action")
    public List<InterposeVo> interposeService(String name) throws Exception {
       return this.interposeService.interposeQuery(name);
    }

    @ResponseBody
    @RequestMapping("/membermedicVoQuery.action")
    public MemberMedicVo MemberMedicVo(int id) throws Exception {

        return this.interposeService.membermedicVoQuery(id);
    }

}
